export default class getSmart{
	//获取人脸数据
	DfaceSort(faceArr){
		let newfaceArr = [];
		faceArr.forEach(face=>{
			let newface  = {};
			newface.faceId = face.faceId;
			newface.faceName = face.faceName;
			newface.facePath = face.facePath;
			
			let newimgArr = [];
			face.pictures.forEach(image=>{
				let newimg = {};
				newimg.id = image.id;
				newimg.name = image.name;
				newimg.description = image.description;
				newimg.userId = image.userId;
				newimg.ablumId = image.ablumId;
				newimg.tag = image.tag;
				newimg.class = image.class;
				newimg.imgPath = image.imgPath;
				newimg.reducedImgPath = image.reducedImgPath;
				newimg.updateTime = image.updateTime;
				newimg.isDelete = image.isDelete;
				newimg.isPrivated = image.isPrivated;
				newimg.isShared = image.isShared;
				newimgArr.push(newimg)
			})
			newface.images = newimgArr;
			newfaceArr.push(newface)
		})
		return newfaceArr
	}
	
	
	//提交人脸命名
	CchangeFaceName(faceID,value){
		return{
			 "faceId": faceID,
			 "faceName": value
		}
	}
}